CREATE TABLE [dbo].[TCPAGO_NCRB]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[FE_AMAR] [dbo].[TD_DT_001] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NULL,
[DE_GLOS] [dbo].[TD_VC_100] NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NULL,
[TI_SITU] [dbo].[TD_VC_003] NULL,
[CO_PROV] [dbo].[TD_VC_020] NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU_PROV] [dbo].[TD_VC_020] NULL,
[CO_CAJA] [dbo].[TD_VC_008] NULL,
[FE_OPER] [dbo].[TD_DT_001] NULL,
[NU_COMP_CAJA] [dbo].[TD_VC_008] NULL,
[IM_MOVI] [dbo].[TD_NU_016_004] NOT NULL CONSTRAINT [DF__TCPAGO_NC__IM_MO__345EC57D] DEFAULT ((0)),
[CO_MONE] [dbo].[TD_VC_003] NULL,
[ST_CONT] [dbo].[TD_VC_001] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCPAGO_NC__CO_US__3552E9B6] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCPAGO_NC__FE_US__36470DEF] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCPAGO_NC__CO_US__373B3228] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCPAGO_NC__FE_US__382F5661] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCPAGO_NCRB] ADD CONSTRAINT [PK__TCPAGO_N__48D2C7FF319832C2] PRIMARY KEY CLUSTERED  ([CO_EMPR], [FE_AMAR], [CO_UNID_CONC], [NU_AMAR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCPAGO_NCRB] ADD CONSTRAINT [FK__TCPAGO_NC__CO_EM__12C992DF] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
